package com.dhcc.bpm.modules.sandbox.service.impl;

import com.dhcc.bpm.modules.sandbox.entity.ParamConfig;
import com.dhcc.bpm.modules.sandbox.vo.ParamConfigVO;
import com.dhcc.bpm.modules.sandbox.mapper.ParamConfigMapper;
import com.dhcc.bpm.modules.sandbox.service.IParamConfigService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 动态报文表 服务实现类
 *
 * @author donghang
 * @since 2020-03-08
 */
@Service
public class ParamConfigServiceImpl extends BaseServiceImpl<ParamConfigMapper, ParamConfig> implements IParamConfigService {

	@Override
	public IPage<ParamConfigVO> selectParamConfigPage(IPage<ParamConfigVO> page, ParamConfigVO paramConfig) {
		return page.setRecords(baseMapper.selectParamConfigPage(page, paramConfig));
	}

	/**
	 * @Description 根据id查询
	 * @Author sjm
	 * @Date 10:28 2020/3/10 0010
	 * @param opcCodeId
	 * @return com.dhcc.bpm.modules.sandbox.entity.ParamConfig
	 **/
	@Override
	public ParamConfig getByCodeId(Long opcCodeId) {
		return baseMapper.getByCodeId(opcCodeId);
	}

}
